﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;

namespace BLL
{

    public class QQRelationBLL
    {
        QQRelationDal qqrelation = new QQRelationDal();
        public int AddQQRelation(Model.QQRelation relation)
        {
            return qqrelation.AddQQRelation(relation);
        }
        public int DeleteQQRelation(string relationId)
        {
            return qqrelation.DeleteQQRelation(relationId);
        }

        public System.Data.DataTable GetAllRelations()
        {
            return qqrelation.GetAllRelations();
        }

        public int UpdateQQRelation(Model.QQRelation relation)
        {
            return qqrelation.UpdateQQRelation(relation);
        }

        public int GetTotal()
        {
            return qqrelation.GetTotal();
        }
        public DataSet getDataByPage(int currentPage, int pageSize)
        {
            return qqrelation.getDataByPage(currentPage, pageSize);
        }
        public DataTable IsSameQQ(string mainQQ, string QQ)
        {
            return qqrelation.isSameQQ(mainQQ, QQ);
        }
        public DataTable getSameQQ(string qq)
        {
          return qqrelation.getSameQQ(qq);
        }

        
    }
}
